import $http from '@/assets/js/http'

//购买交易列表
export function buyListGet(param) {
    return $http.get('/manage/purchase/order/list', {
        params: {
        	orderCode:param.orderCode,
        	nickName:param.nickName,
        	mobile:param.mobile,
        	type:param.type,
        	pageIndex:param.pageIndex,
        	pageSize:param.pageSize,
        }
    });
}

//POST /manage/exchange/order/confirm 确认卖家是否同意置换
export function buyConfirm(param) {
    return $http.post('/manage/purchase/order/refuse', {
        orderId: param.orderId,
        result: param.result,
    });
}


//POST /manage/exchange/order/receiveSeller 平台收货-卖家的藏品
export function receiveSellerBuy(param) {
    return $http.post('/manage/purchase/order/receiveSeller', {
        orderId: param.orderId,
    });
}

//POST /manage/exchange/order/expressBuyer 平台发货-发货给买家
export function expressBuyerBuy(param) {
    return $http.post('/manage/purchase/order/expressSeller', {
        orderId: param.orderId,
        expressCompany: param.expressCompany,
        expressKey: param.expressKey,
        expressCode: param.expressCode,
    });
}


// 买家的保证金-退回、没收
export function refundBondBuyerExc(param) {
    return $http.post('/manage/purchase/order/refundBondBuyer', {
        orderId: param.orderId,
        result: param.result,
    });
}

//POST /manage/exchange/order/refundBondSeller 被置换方的保证金-退回、没收
export function refundBondSellerExc(param) {
    return $http.post('/manage/purchase/order/refundBondSeller', {
        orderId: param.orderId,
        result: param.result,
    });
}

//快递公司列表
export function getExpressList(params) {
    return $http.get('/web/express/companyList', {
    	params: { 

    	}
    });
}